Data files and codes related to the manuscript titled “The Art of the Deal: Deciphering the Endowment Effect from Traders’ Eyes” by Feng Sheng, Ruining Wang, Zexian Liang, Xiaoyi Wang, Michael L. Platt.

--------------------------------------------------
Data

subject.csv: subject information

Subject: subject index

Role1: 1=buyer first, 2=seller first

PricePosition: 1=price on left, 2=price on right

behavior.csv: choice and response time data

Subject: subject index

Block: 1=first block, 2=second block

Role: 1=buyer, 2=seller

PricePosition: 1=price on left, 2=price on right

Price: price

Lottery: face value of lottery

Choice: 1=accept, 0=reject

Ending: 1=lottery, 0=money

RT: response time

eye. csv: eye-tracking sampling data

Subject: subject index

Block: 1=first block, 2=second block

Role: 1=buyer, 2=seller

PricePosition: 1=price on left, 2=price on right

TimeSignal: time relative to block onset

StimulusName: <100, fixations, the number indicates the order of a trial; >1000, offers, coded as Price*1000+Lottery;

GazeX: x coordinate

GazeY: y coordinate

PupilLeft: left pupil size

--------------------------------------------------
Code

Matlab

This folder includes Matlab scripts used to analyze the data and produce figures.

Please see the "wrapped_final.m" for step-by-step instructions on how to go through all scripts.

Python

This folder includes two scripts used to run DDMs and aDDMs based on HDDM package in Python.

